#!/bin/bash

TIMEOUT=1

echo -n input your name:
read -t $TIMEOUT name

echo;
if [ -z "$name" ];then
	echo "null name";
else
	echo $name
fi